forScreeningCall

@NonNull
open fun forScreeningCall(@NonNull person: @NonNull Person, @NonNull hangUpIntent: @NonNull PendingIntent, @NonNull answerIntent: @NonNull PendingIntent): @NonNull NotificationCompat.CallStyle(source)

Creates a CallStyle for a call that is being screened. This notification will have a hang up and an answer action, will allow a single custom action, and will have a default content text for a call that is being screened.

Parameters

person

the person displayed as the caller the person also needs to have a non-empty name associated with it

hangUpIntent

the intent to be sent when the user taps the hang up action

answerIntent

the intent to be sent when the user taps the answer action